package com.dq.config;

import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
import org.springframework.web.socket.server.standard.ServerEndpointExporter;

/**
 * @description:
 * @author: chat-backend-public_小强 (QQ:2680825683)
 * @className: WebSocketConfig
 * @since: 2023/2/9 17:47
 */
@Configuration
public class WebSocketConfig {

    /**
     * 此对象(ServerEndpointExporter)注入 可以自动注册扫描ServerEndPoint
     * @return
     */
    @Bean
    public ServerEndpointExporter serverEndpointExporter(){
        return new ServerEndpointExporter();
    }
}
